﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ElearningOUH.Models;

namespace ElearningOUH.Controllers
{
    public class HygiejneTestController : Controller
    {

        HygiejneSpoergsmaalDB HygSpg = new HygiejneSpoergsmaalDB();

        //
        // GET: /HygiejneTest/
        
        public ActionResult Index()
        {
            var model = HygSpg;
            return View(model);  //sender hygspg fra modellen med til viewet
        }

        [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult Svar(FormCollection form)
        {
            
            var model = HygSpg;
            //HygSpg.valgtSvar = Convert.ToInt32(form[HygSpg.SpørgsmålsTekst.ToString()]);

            return View(model);
        }

    }
}
